package com.shop.dingdongshoppingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 菜谱表(TEatMenu)实体类
 *
 * @author makejava
 * @since 2022-07-02 20:35:34
 */
@Data
@TableName("t_eat_menu")
@NoArgsConstructor
public class EatMenu implements Serializable {
    private static final long serialVersionUID = -56989443259087731L;
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 菜谱id
     */
    private Integer pid;
    /**
     * 菜谱名称
     */
    private String name;
    /**
     * 餐谱图片
     */
    private String photo;
    /**
     * 难易度（简单1-3，一般4-6，困难7-10））
     */
    private String level;
    /**
     * 分数
     */
    private Integer grade;
    /**
     * 菜谱菜品类型
     */
    private String type;

    public EatMenu(Integer pid, String name, String photo, String level, Integer grade, String type) {
        this.pid = pid;
        this.name = name;
        this.photo = photo;
        this.level = level;
        this.grade = grade;
        this.type = type;
    }
}

